package com.dingwen.treasure.manage.controller;

import com.dingwen.treasure.manage.dto.SysRoleDto;
import com.dingwen.treasure.manage.vo.SysRoleVo;
import com.dingwen.treasure.model.entity.mybatisplus.SysRole;
import com.dingwen.treasure.mybatisplus.controller.AbstractBaseControllerMybatisPlusImpl;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 　SysRoleController
 * 　@author dingwen
 * 　@date 2022/6/20
 */
@Api(tags = "系统角色,基于mybatis-plus封装BaseController")
@ApiSupport(author = "dingwen")
@Slf4j
@RestController
@RequestMapping("sys/role")
public class SysRoleController extends AbstractBaseControllerMybatisPlusImpl<SysRole, SysRoleDto, SysRoleVo> {

    /**
     * 默认开启 BO 到 VO 的转换
     *
     * @return {@link Boolean}
     */
    @Override
    public Boolean enableBoToVo() {
        return Boolean.FALSE;
    }
}
